import redis


r = redis.StrictRedis(host='redis', port=6379, db=0)

print r.keys()

'''
info = r.info()
for key in info:
    print key, info[key]
l = [1,2,3,4]
d = {'111':111,'222':222}
#r.lpush('listl', d)
#r.lpush('listl', 2)
#r.lpop('')
#print r.type('listl')

key = 'me2118'
print r.lrange(key, 0, -1)
exit(0)
l=0
print l
lll = 0
for aa in r.lrange(key, 0, l):
#    print aa,type(aa)
#for aa in r.keys('*'):
    a = eval(aa)
    lll += 1
#    print a,type(a)
    for k,v in a.items():
        print k,v
    print '----------------------------'
#    print aa,type(aa)
#print r.keys('*')
#print r.get(key)
print 'line:',lll
'''
